package com.example.hao.androidviewanimations;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.daimajia.androidanimations.library.Techniques;
import com.daimajia.androidanimations.library.YoYo;

public class MainActivity extends AppCompatActivity {

    private TextView tv_show;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tv_show = findViewById(R.id.tv_show);

    }

    /*********************Attension***********************/
    public void Tada(View view) {
        YoYo.with(Techniques.Tada)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Flash(View view) {
        YoYo.with(Techniques.Flash)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Pulse(View view) {
        YoYo.with(Techniques.Pulse)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RubberBand(View view) {
        YoYo.with(Techniques.RubberBand)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Shake(View view) {
        YoYo.with(Techniques.Shake)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Swing(View view) {
        YoYo.with(Techniques.Swing)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Wobble(View view) {
        YoYo.with(Techniques.Wobble)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Bounce(View view) {
        YoYo.with(Techniques.Bounce)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void StandUp(View view) {
        YoYo.with(Techniques.StandUp)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Wave(View view) {
        YoYo.with(Techniques.Wave)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }


    /******************Special***********************/
    public void DropOut(View view) {
        YoYo.with(Techniques.DropOut)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void TakingOff(View view) {
        YoYo.with(Techniques.TakingOff)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Landing(View view) {
        YoYo.with(Techniques.Landing)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RollOut(View view) {
        YoYo.with(Techniques.RollOut)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RollIn(View view) {
        YoYo.with(Techniques.RollIn)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void Hinge(View view) {
        YoYo.with(Techniques.Hinge)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }


    /*****************Bounce********************/
    public void BounceIn(View view) {
        YoYo.with(Techniques.BounceIn)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void BounceInDown(View view) {
        YoYo.with(Techniques.BounceInDown)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void BounceInLeft(View view) {
        YoYo.with(Techniques.BounceInLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void BounceInRight(View view) {
        YoYo.with(Techniques.BounceInRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void BounceInUp(View view) {
        YoYo.with(Techniques.BounceInUp)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    /********************Fade**************************/
    public void FadeIn(View view) {
        YoYo.with(Techniques.FadeIn)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FadeInUp(View view) {
        YoYo.with(Techniques.FadeInUp)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FadeInDown(View view) {
        YoYo.with(Techniques.FadeInDown)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }


    public void FadeInLeft(View view) {
        YoYo.with(Techniques.FadeInLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FadeInRight(View view) {
        YoYo.with(Techniques.FadeInRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FadeOut(View view) {
        YoYo.with(Techniques.FadeOut)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FadeOutDown(View view) {
        YoYo.with(Techniques.FadeOutDown)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FadeOutLeft(View view) {
        YoYo.with(Techniques.FadeOutLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FadeOutRight(View view) {
        YoYo.with(Techniques.FadeOutRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FadeOutUp(View view) {
        YoYo.with(Techniques.FadeOutUp)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    /********************Flip*************************/
    public void FlipInX(View view) {
        YoYo.with(Techniques.FlipInX)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FlipOutX(View view) {
        YoYo.with(Techniques.FlipOutX)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void FlipOutY(View view) {
        YoYo.with(Techniques.FlipOutY)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    /********************Rotate**************************/
    public void RotateIn(View view) {
        YoYo.with(Techniques.RotateIn)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateInDownLeft(View view) {
        YoYo.with(Techniques.RotateInDownLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateInDownRight(View view) {
        YoYo.with(Techniques.RotateInDownRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateOut(View view) {
        YoYo.with(Techniques.RotateOut)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateInUpLeft(View view) {
        YoYo.with(Techniques.RotateInUpLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateInUpRight(View view) {
        YoYo.with(Techniques.RotateInUpRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateOutDownLeft(View view) {
        YoYo.with(Techniques.RotateOutDownLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateOutDownRight(View view) {
        YoYo.with(Techniques.RotateOutDownRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateOutUpLeft(View view) {
        YoYo.with(Techniques.RotateOutUpLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void RotateOutUpRight(View view) {
        YoYo.with(Techniques.RotateOutUpRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }


    /****************Slide********************/
    public void SlideInLeft(View view) {
        YoYo.with(Techniques.SlideInLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void SlideInRight(View view) {
        YoYo.with(Techniques.SlideInRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void SlideInUp(View view) {
        YoYo.with(Techniques.SlideInUp)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void SlideInDown(View view) {
        YoYo.with(Techniques.SlideInDown)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void SlideOutLeft(View view) {
        YoYo.with(Techniques.SlideOutLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void SlideOutRight(View view) {
        YoYo.with(Techniques.SlideOutRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void SlideOutUp(View view) {
        YoYo.with(Techniques.SlideOutUp)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void SlideOutDown(View view) {
        YoYo.with(Techniques.SlideOutDown)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    /*****************Zoom**********************/
    public void ZoomIn(View view) {
        YoYo.with(Techniques.SlideOutDown)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomInDown(View view) {
        YoYo.with(Techniques.ZoomInDown)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomInLeft(View view) {
        YoYo.with(Techniques.ZoomInLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomInRight(View view) {
        YoYo.with(Techniques.ZoomInRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomInUp(View view) {
        YoYo.with(Techniques.ZoomInUp)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomOut(View view) {
        YoYo.with(Techniques.ZoomOut)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomOutDown(View view) {
        YoYo.with(Techniques.ZoomOutDown)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomOutLeft(View view) {
        YoYo.with(Techniques.ZoomOutLeft)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomOutRight(View view) {
        YoYo.with(Techniques.ZoomOutRight)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }

    public void ZoomOutUp(View view) {
        YoYo.with(Techniques.ZoomOutUp)
                .duration(700)
                .repeat(5)
                .playOn(tv_show);
    }
}
